import 'package:flutter/material.dart';
import 'package:flutter_play_android/res/colors.dart';
import 'package:fluttertoast/fluttertoast.dart';

class ToastUtil {
  static show(
      {required String msg,
      Toast toastLength = Toast.LENGTH_SHORT,
      int timeInSecForIos = 1,
      double fontSize = 16.0,
      ToastGravity gravity = ToastGravity.CENTER,
      Color backgroundColor = Colours.transparent_ba,
      Color textColor = Colors.white}) {
    Fluttertoast.showToast(
        msg: msg,
        toastLength: toastLength,
        timeInSecForIosWeb: timeInSecForIos,
        fontSize: fontSize,
        gravity: gravity,
        backgroundColor: backgroundColor,
        textColor: textColor);
  }
}
